package top.gbiot.data.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import top.gbiot.common.annotation.Excel;
import top.gbiot.common.core.domain.BaseEntity;

/**
 * 设备数据对象 iot_data
 * 
 * @author gb
 * @date 2021-02-22
 */
public class IotData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据标识 */
    private String dataId;

    /** 设备标识 */
    private String deviceId;

    /** 设备SN码 */
    private String deviceSn;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 数据内容 */
    @Excel(name = "数据内容")
    private String data;

    /** 数据单位标识 */
    private String dataUnitId;

    /** 数据类型 */
    @Excel(name = "数据类型")
    private String dataType;

    /** 数据单位名称 */
    @Excel(name = "数据单位名称")
    private String dataUnitName;

    /** 创建人 */
    private String creator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改人 */
    private String modifier;

    /** 修改时间 */
    private Date modifyDate;

    public void setDataId(String dataId) 
    {
        this.dataId = dataId;
    }

    public String getDataId() 
    {
        return dataId;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceSn(String deviceSn) 
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn() 
    {
        return deviceSn;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setData(String data) 
    {
        this.data = data;
    }

    public String getData() 
    {
        return data;
    }
    public void setDataUnitId(String dataUnitId) 
    {
        this.dataUnitId = dataUnitId;
    }

    public String getDataUnitId() 
    {
        return dataUnitId;
    }
    public void setDataType(String dataType) 
    {
        this.dataType = dataType;
    }

    public String getDataType() 
    {
        return dataType;
    }
    public void setDataUnitName(String dataUnitName) 
    {
        this.dataUnitName = dataUnitName;
    }

    public String getDataUnitName() 
    {
        return dataUnitName;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setModifier(String modifier) 
    {
        this.modifier = modifier;
    }

    public String getModifier() 
    {
        return modifier;
    }
    public void setModifyDate(Date modifyDate) 
    {
        this.modifyDate = modifyDate;
    }

    public Date getModifyDate() 
    {
        return modifyDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dataId", getDataId())
            .append("deviceId", getDeviceId())
            .append("deviceSn", getDeviceSn())
            .append("deviceName", getDeviceName())
            .append("deviceType", getDeviceType())
            .append("data", getData())
            .append("dataUnitId", getDataUnitId())
            .append("dataType", getDataType())
            .append("dataUnitName", getDataUnitName())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .append("modifier", getModifier())
            .append("modifyDate", getModifyDate())
            .toString();
    }
}
